Optimal. Leaf size=81 \[ \frac {a^2 x (d x)^m}{m \sqrt {c x^2}}+\frac {2 a b x (d x)^{1+m}}{d (1+m) \sqrt {c x^2}}+\frac {b^2 x (d x)^{2+m}}{d^2 (2+m) \sqrt {c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {15, 16, 45}
\begin {gather*} \frac {a^2 x (d x)^m}{m \sqrt {c x^2}}+\frac {2 a b x (d x)^{m+1}}{d (m+1) \sqrt {c x^2}}+\frac {b^2 x (d x)^{m+2}}{d^2 (m+2) \sqrt {c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 16
Rule 45
Rubi steps
\begin {align*} \int \frac {(d x)^m (a+b x)^2}{\sqrt {c x^2}} \, dx &=\frac {x \int \frac {(d x)^m (a+b x)^2}{x} \, dx}{\sqrt {c x^2}}\\ &=\frac {(d x) \int (d x)^{-1+m} (a+b x)^2 \, dx}{\sqrt {c x^2}}\\ &=\frac {(d x) \int \left (a^2 (d x)^{-1+m}+\frac {2 a b (d x)^m}{d}+\frac {b^2 (d x)^{1+m}}{d^2}\right ) \, dx}{\sqrt {c x^2}}\\ &=\frac {a^2 x (d x)^m}{m \sqrt {c x^2}}+\frac {2 a b x (d x)^{1+m}}{d (1+m) \sqrt {c x^2}}+\frac {b^2 x (d x)^{2+m}}{d^2 (2+m) \sqrt {c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 62, normalized size = 0.77 \begin {gather*} \frac {x (d x)^m \left (a^2 \left (2+3 m+m^2\right )+2 a b m (2+m) x+b^2 m (1+m) x^2\right )}{m (1+m) (2+m) \sqrt {c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 79, normalized size = 0.98
method | result | size |
gosper | \(\frac {x \left (b^{2} m^{2} x^{2}+2 a b \,m^{2} x +m \,x^{2} b^{2}+a^{2} m^{2}+4 a b m x +3 a^{2} m +2 a^{2}\right ) \left (d x \right )^{m}}{\left (2+m \right ) \left (1+m \right ) m \sqrt {c \,x^{2}}}\) | \(79\) |
risch | \(\frac {x \left (b^{2} m^{2} x^{2}+2 a b \,m^{2} x +m \,x^{2} b^{2}+a^{2} m^{2}+4 a b m x +3 a^{2} m +2 a^{2}\right ) \left (d x \right )^{m}}{\left (2+m \right ) \left (1+m \right ) m \sqrt {c \,x^{2}}}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 57, normalized size = 0.70 \begin {gather*} \frac {b^{2} d^{m} x^{2} x^{m}}{\sqrt {c} {\left (m + 2\right )}} + \frac {2 \, a b d^{m} x x^{m}}{\sqrt {c} {\left (m + 1\right )}} + \frac {a^{2} d^{m} x^{m}}{\sqrt {c} m} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.72, size = 85, normalized size = 1.05 \begin {gather*} \frac {{\left (a^{2} m^{2} + 3 \, a^{2} m + {\left (b^{2} m^{2} + b^{2} m\right )} x^{2} + 2 \, a^{2} + 2 \, {\left (a b m^{2} + 2 \, a b m\right )} x\right )} \sqrt {c x^{2}} \left (d x\right )^{m}}{{\left (c m^{3} + 3 \, c m^{2} + 2 \, c m\right )} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \begin {cases} \frac {\int \frac {b^{2}}{\sqrt {c x^{2}}}\, dx + \int \frac {a^{2}}{x^{2} \sqrt {c x^{2}}}\, dx + \int \frac {2 a b}{x \sqrt {c x^{2}}}\, dx}{d^{2}} & \text {for}\: m = -2 \\\frac {\int \frac {2 a b}{\sqrt {c x^{2}}}\, dx + \int \frac {a^{2}}{x \sqrt {c x^{2}}}\, dx + \int \frac {b^{2} x}{\sqrt {c x^{2}}}\, dx}{d} & \text {for}\: m = -1 \\\int \frac {\left (a + b x\right )^{2}}{\sqrt {c x^{2}}}\, dx & \text {for}\: m = 0 \\\frac {a^{2} m^{2} x \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} + \frac {3 a^{2} m x \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} + \frac {2 a^{2} x \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} + \frac {2 a b m^{2} x^{2} \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} + \frac {4 a b m x^{2} \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} + \frac {b^{2} m^{2} x^{3} \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} + \frac {b^{2} m x^{3} \left (d x\right )^{m}}{m^{3} \sqrt {c x^{2}} + 3 m^{2} \sqrt {c x^{2}} + 2 m \sqrt {c x^{2}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 62, normalized size = 0.77 \begin {gather*} \frac {{\left (d\,x\right )}^m\,\left (\frac {a^2\,x}{m}+\frac {b^2\,x^3\,\left (m+1\right )}{m^2+3\,m+2}+\frac {2\,a\,b\,x^2\,\left (m+2\right )}{m^2+3\,m+2}\right )}{\sqrt {c\,x^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________